package com.zhijian.wharf.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * API日志
 * @author Auto Generator
 * @date 2024-06-17 19:29:00
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "API日志")
public class ApiLog {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;

    /**
     * log_time
     */
    @ApiModelProperty("log_time")
    private Date logTime;

    /**
     * module_name
     */
    @ApiModelProperty("module_name")
    private String moduleName;

    /**
     * api
     */
    @ApiModelProperty("api")
    private String api;

    /**
     * cost_time
     */
    @ApiModelProperty("cost_time")
    private Integer costTime;

    /**
     * status
     */
    @ApiModelProperty("status")
    private Byte status;

    /**
     * ip_addr
     */
    @ApiModelProperty("ip_addr")
    private String ipAddr;

    /**
     * header
     */
    @ApiModelProperty("header")
    private String header;

    /**
     * request_uri
     */
    @ApiModelProperty("request_uri")
    private String requestUri;

    /**
     * method
     */
    @ApiModelProperty("method")
    private String method;

    /**
     * args
     */
    @ApiModelProperty("args")
    private String args;

    /**
     * result
     */
    @ApiModelProperty("result")
    private String result;

    /**
     * 操作人ID
     */
    @ApiModelProperty("操作人ID")
    @NotNull(message = "操作人ID不能为空")
    private Long createUserId;

    /**
     * 操作人姓名
     */
    @ApiModelProperty("操作人姓名")
    private String createUserName;

    /**
     * create_time
     */
    @ApiModelProperty("create_time")
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty("update_time")
    private Date updateTime;
}